<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <school/>
        <hr>
    </div>
    <script src="/Vue/Vue基础/JS/vue.js"></script>
    <script>
        const school = Vue.extend({
            name:'shang',
            data() {
                return {
                    name:'家里蹲大学',
                    address:'家里'
                }
            },
            template:`
                <div>
                    <h2>{{ name }}</h2>
                    <h2>{{ address }}</h2>
                </div>
            `
        })
        

        new Vue({
            el:'#app',
            components:{
                school,
            }
        })
    </script>
</body>
</html>